package com.xiaoyu.izf.repository;

import com.xiaoyu.izf.model.CommissionLog;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;

public interface CommissionLogDao extends JpaRepository<CommissionLog,Integer>, JpaSpecificationExecutor<CommissionLog> {
    public CommissionLog findOneById(int id);

    public CommissionLog findOneByOrderIdAndGradeType(String orderId, int gradeType);

    public Page<CommissionLog> findByUidAndPayStatusAndLogType(Pageable pageable,int uid,int payStatus,int logType);
}
